import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'

import FindComVue from './Views/FindCom.vue'
import MusicComVue from './Views/MusicCom.vue'
import FriendsComVue from './Views/FriendsCom.vue'

Vue.use(VueRouter)  // 这个就是注册一个插件
const router = new VueRouter({
  routes: [
    { path: '/', component: FindComVue},
    { path: '/music', component: MusicComVue},
    { path: '/friend', component: FriendsComVue},
  ]
})

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
